<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:p="http://primefaces.org/ui">

    <h:panelGroup layout="block" style="height: 65px;" styleClass="w40">  
        <h:outputLabel value="#{msg.lb_exportar} datos a:" styleClass="dsb p5 texto-azul"/>
        <h:commandLink value="Excel" styleClass="p5 left pr">  
            <p:graphicImage value="/resources/images/excel.png"  styleClass="left"/>  
            <p:dataExporter type="xls" target="#{data}" fileName="#{nombre}" 
                            postProcessor="#{exportarJSFBean.postProcessExcel}"/>  
        </h:commandLink> 
        <h:commandLink value="Pdf" styleClass="p5 left pr">  
            <p:graphicImage  value="/resources/images/pdf.png" styleClass="left"/>  
            <p:dataExporter type="pdf" target="#{data}" fileName="#{nombre}"  
                            preProcessor="#{exportarJSFBean.preProcessPDF}"
                            postProcessor="#{exportarJSFBean.postProcessPDF}"
                            encoding="ISO-8859-1"/>  
        </h:commandLink>                          
    </h:panelGroup>

</ui:composition>